package com.meet.persist.dao;

import com.meet.persist.entity.PrivateMessage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PrivateMessageDao {
    List<PrivateMessage> findMessagesByUserId(@Param("userId") String userId,
                                              @Param("page") int page,
                                              @Param("limit") int limit);

    int countMessagesByUserId(String userId);

    boolean insertMessage(PrivateMessage message);
}
